package com.qq.controller;

import com.qq.common.QcodeCreate;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Api(tags={"基础工具接口"})
@RestController
public class CommonController {
    @Autowired
    private QcodeCreate qqcode;

    @ApiOperation(value = "随机8位QQ号")
    @PostMapping(value = "/getqqcode")
    public Integer getqqcode() {
        return qqcode.getQQcode();
    }

}
